projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c819abe
)
net/net.c: cosmetic: do not use assignment in if condition
author
Luca Ceresoli
<
[email protected]
>
Wed, 4 May 2011 02:40:47 +0000
(
02:40
+0000)
committer
Wolfgang Denk
<
[email protected]
>
Thu, 12 May 2011 20:07:41 +0000
(22:07 +0200)
This removes the following checkpatch issue:
- ERROR: do not use assignment in if condition
Signed-off-by: Luca Ceresoli <
[email protected]
>
Cc: Wolfgang Denk <
[email protected]
>
Cc: Ben Warren <
[email protected]
>
net/net.c
patch
|
blob
|
history
diff --git
a/net/net.c
b/net/net.c
index 1f3d70bd9052f59098a5daca0f52cf88e26322ed..2abf87929b935d62ebabde49093af9c0ee6c5fc2 100644
(file)
--- a/
net/net.c
+++ b/
net/net.c
@@
-1616,7
+1616,8
@@
NetReceive(volatile uchar *inpkt, int len)
* a fragment, and either the complete packet or NULL if
* it is a fragment (if !CONFIG_IP_DEFRAG, it returns NULL)
*/
- if (!(ip = NetDefragment(ip, &len)))
+ ip = NetDefragment(ip, &len);
+ if (!ip)
return;
/*
* watch for ICMP host redirects